package Tools;

public class Round extends PlaneFigure {
	private double PI=3.14;
	private double r;
	private double c;
	private double s;
	public Round(){
		
	}

	public Round(String name,double r) {
		super(name);
		this.r= r;
	}
	
	public double getR() {
		return r;
	}

	public void setR(double r) {
		this.r = r;
	}
	public void setC(double c) {
		this.c = c;
	}
	public void setS(double s) {
		this.s = s;
	}

	public double C(){
		c=2*PI*r;
		String cc = String.format("%.2f",c);
		double c = Double.parseDouble(cc);
		return c;
	}
	public double S(){
		s=PI*r*r;
		String ss = String.format("%.2f",s);
		double s = Double.parseDouble(ss);
		return s;
	}


}
